{include file="public/hunanconstr_meta" /}
<link href="__PUBLIC_ADMIN__css/plugins/iCheck/custom.css" rel="stylesheet">
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
    
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>所有企业</h5>
                        <div class="ibox-tools">
                            <a href="{:url('admin/Hunanconstr/company_list')}" class="btn btn-primary btn-xs">返回列表</a>
                        </div>
                    </div>
                    
                    <div class="ibox-content">
                        <form action="{:url('admin/Hunanconstr/company_edit')}" method="post" class="form-horizontal" enctype="multipart/form-data">
                        	<input type="hidden" name="id" value="{$res.id}" />
                        	<div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">企业名称</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" value="{$res.company_name}" name="company_name">
                                </div>
                            </div>
                        	<div class="hr-line-dashed"></div>
                            <div class="form-group">
								<label class="col-sm-2 control-label">企业LOGO</label>
								<div class="col-sm-10">
									<div class="up">
										<input type="file" class="four" value="{$res.company_logo}" name="file" placeholder="">
										<div id="preview4"  >
						                    <img src="__IMG_UP__{$res.company_logo}" alt="" >
						                </div>
						            </div>
					            </div>
							</div>
							<div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">企业总项目数</label>
                                <div class="col-sm-10">
                                        <input type="text" class="form-control" value="{$res.item_number}" name="item_number" placeholder="">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">企业总项目款</label>
                                <div class="col-sm-10">
                                        <input type="text" class="form-control" value="{$res.amount_all}" name="amount_all" placeholder="">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">企业总回收款</label>
                                <div class="col-sm-10">
                                        <input type="text" class="form-control" value="{$res.payment}" name="payment" placeholder="">
                                </div>
                            </div>
							<div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">财务绑定码</label>
                                <div class="col-sm-10">
                                        <input type="text" class="form-control" value="{$res.code}" name="code" placeholder="">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">企业状态</label>
                                <div class="col-sm-10">
                                    <div class="radio i-checks">
                                        <label>
                                            <input type="radio" {if condition="$res.status eq 1"} checked="" {/if}  value="1" name="status">正常</label>
                                    </div>
                                    <div class="radio i-checks">
                                        <label>
                                            <input type="radio" {if condition="$res.status eq 0"} checked="" {/if} value="0" name="status">停运</label>
                                    </div>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <!-- <div class="form-group">
                                <label class="col-sm-2 control-label">排序值</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" value="{$res.sort}" name="sort">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div> -->
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <button class="btn btn-primary" type="submit">保存内容</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

    {include file="public/hunanconstr_footer" /}
	
    <!-- 自定义js -->
    <script src="__PUBLIC_ADMIN__js/content.js?v=1.0.0"></script>
    
    <!-- iCheck -->
    <script src="__PUBLIC_ADMIN__js/plugins/iCheck/icheck.min.js"></script>
    
    <script>
        $(document).ready(function() {
        	$('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green',
                radioClass: 'iradio_square-green',
            });
			
            $('.refresh').click(function(){
            	window.location.reload();	// 刷新页面
            })
            
          	//iframe窗
          	$('.edit').click(function(){
          		var index = layer.open({
          			type : 2,
					fixed: true,
					scrollbar: false,
					title : '很多时候，我们想最大化看，比如像这个页面。',
					shadeClose : false,
					maxmin : true, //开启最大化最小化按钮
					area : ['893px', '600px'],
					//offset: '100px',
					content : '//www.wei-yong.com'
          		});
          		layer.full(index);
          	})
		});
	</script>
</body>
</html>
